//
//  HLSquareGroupRequest.m
//  YueYue
//
//  Created by hulu001 on 2023/5/30.
//

#import "HLSquareGroupRequest.h"

@implementation HLSquareGroupRequest

- (NSString *)requestUrl
{
    return @"/get/chatGroupList";
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

- (id)requestArgument
{
    return @{};
}


- (NSArray <HLSquareGroupModel *> *)groupList
{
    NSArray *lists = @[];
    NSArray *data = [self.result valueForKey:@"data"];
    if (![data isKindOfClass:[NSArray class]]){
        return lists;
    }

    if (data.count > 0) {
       lists = [HLSquareGroupModel mj_objectArrayWithKeyValuesArray:data];
    }
    
    return lists;
}


@end
